package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.dto.Role;
import com.xingxuecn.limit.common.model.dto.RoleUser;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/14 14:12
 */
public interface RoleUserDao {

    int add(RoleUser roleUser) throws SQLException;

    int delete(RoleUser roleUser) throws SQLException;

    List<Role> loadRoleByUser(Integer userId) throws SQLException;
}
